package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingPlan;
import com.zzyl.vo.NursingPlanVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface NursingPlanMapper {
    /**
     * 护理计划分页查询
     * @param nursingPlan
     * @return
     */
    Page<NursingPlanVo> list(NursingPlan nursingPlan);

    /**
     * 获取所有护理计划
     * @return
     */
    @Select("select * from nursing_plan")
    List<NursingPlanVo> getAllQueries();
}
